home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / UUPC11QS.ARJ / MKFILENM.C < prev    next >
C/C++ Source or Header  |  1991-11-21  |  2KB  |  38 lines

  1. /*--------------------------------------------------------------------*/
  2. /*    m k f i l e n a m e . c                                         */
  3. /*                                                                    */
  4. /*    Support routines for UUPC/extended                              */
  5. /*                                                                    */
  6. /*    Changes Copyright 1990, 1991 (c) Andrew H. Derbyshire           */
  7. /*                                                                    */
  8. /*    History:                                                        */
  9. /*       21Nov1991 Break out of hlib.c                         ahd    */
  10. /*--------------------------------------------------------------------*/
  11.  
  12. #include <stdio.h>
  13. #include <stdlib.h>
  14. #include <string.h>
  15. #include <time.h>
  16.  
  17. /*--------------------------------------------------------------------*/
  18. /*                    UUPC/extended include files                     */
  19. /*--------------------------------------------------------------------*/
  20.  
  21. #include "hlib.h"
  22. #include "lib.h"
  23.  
  24. /*--------------------------------------------------------------------*/
  25. /*    m k f i l e n a m e                                             */
  26. /*                                                                    */
  27. /*    Build a path name out of a directory name and a file name       */
  28. /*--------------------------------------------------------------------*/
  29.  
  30. void mkfilename(char *pathname,
  31.                 const char *path,
  32.                 const char *name)
  33. {
  34.    sprintf(pathname, "%s/%s", path, name);
  35.    strlwr(pathname);             /* Normalize the name for messages     */
  36.  
  37. } /*mkfilename*/
  38.